package com.longcai.piaojia.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/10/28.
 */
@HttpInlet(Conn.TRILATERAL_LOGIN)
public class TrilateralLoginGet extends BaseAsyGet<String> {

    public String productId;

    public TrilateralLoginGet(AsyCallBack<String> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected String parser(JSONObject object) throws Exception {

        JSONObject jsonObject = object.optJSONObject("head");

        if(jsonObject.optInt("result")==200){

            return "";

        }

        TOAST = "网络异常请重试";

        return null;
    }
}
